﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Barbar.Colonization.Model.Script.TileCommands {
  public class SetTileType : TileCommand  {
    private ITileType m_TileType;

    public SetTileType(Tile tile, ITileType tileType) : base(tile) {
      if (tileType == null)
        throw new ArgumentNullException("tileType");
      m_TileType = tileType;
    }

    public override void Execute() {
      InternalTile.TileType = m_TileType;
    } 
  }
}
